Optimal. Leaf size=96 \[ -\frac{2 a^2 \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt{a \sin (e+f x)+a} \sqrt{c-c \sin (e+f x)}}-\frac{a \cos (e+f x) \sqrt{a \sin (e+f x)+a}}{f \sqrt{c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.191691, antiderivative size = 96, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.133, Rules used = {2740, 2737, 2667, 31} \[ -\frac{2 a^2 \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt{a \sin (e+f x)+a} \sqrt{c-c \sin (e+f x)}}-\frac{a \cos (e+f x) \sqrt{a \sin (e+f x)+a}}{f \sqrt{c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2740
Rule 2737
Rule 2667
Rule 31
Rubi steps
\begin{align*} \int \frac{(a+a \sin (e+f x))^{3/2}}{\sqrt{c-c \sin (e+f x)}} \, dx &=-\frac{a \cos (e+f x) \sqrt{a+a \sin (e+f x)}}{f \sqrt{c-c \sin (e+f x)}}+(2 a) \int \frac{\sqrt{a+a \sin (e+f x)}}{\sqrt{c-c \sin (e+f x)}} \, dx\\ &=-\frac{a \cos (e+f x) \sqrt{a+a \sin (e+f x)}}{f \sqrt{c-c \sin (e+f x)}}+\frac{\left (2 a^2 c \cos (e+f x)\right ) \int \frac{\cos (e+f x)}{c-c \sin (e+f x)} \, dx}{\sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ &=-\frac{a \cos (e+f x) \sqrt{a+a \sin (e+f x)}}{f \sqrt{c-c \sin (e+f x)}}-\frac{\left (2 a^2 \cos (e+f x)\right ) \operatorname{Subst}\left (\int \frac{1}{c+x} \, dx,x,-c \sin (e+f x)\right )}{f \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}\\ &=-\frac{2 a^2 \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt{a+a \sin (e+f x)} \sqrt{c-c \sin (e+f x)}}-\frac{a \cos (e+f x) \sqrt{a+a \sin (e+f x)}}{f \sqrt{c-c \sin (e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.317503, size = 113, normalized size = 1.18 \[ -\frac{(a (\sin (e+f x)+1))^{3/2} \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) \left (\sin (e+f x)+4 \log \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right )\right )}{f \sqrt{c-c \sin (e+f x)} \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.17, size = 252, normalized size = 2.6 \begin{align*}{\frac{1}{f \left ( \sin \left ( fx+e \right ) \cos \left ( fx+e \right ) + \left ( \cos \left ( fx+e \right ) \right ) ^{2}-2\,\sin \left ( fx+e \right ) +\cos \left ( fx+e \right ) -2 \right ) } \left ( \sin \left ( fx+e \right ) \cos \left ( fx+e \right ) -2\,\sin \left ( fx+e \right ) \ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) +4\,\sin \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) - \left ( \cos \left ( fx+e \right ) \right ) ^{2}-2\,\cos \left ( fx+e \right ) \ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) +4\,\cos \left ( fx+e \right ) \ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) -\sin \left ( fx+e \right ) +2\,\ln \left ( 2\, \left ( \cos \left ( fx+e \right ) +1 \right ) ^{-1} \right ) -4\,\ln \left ( -{\frac{-1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }} \right ) +1 \right ) \left ( a \left ( 1+\sin \left ( fx+e \right ) \right ) \right ) ^{{\frac{3}{2}}}{\frac{1}{\sqrt{-c \left ( -1+\sin \left ( fx+e \right ) \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac{3}{2}}}{\sqrt{-c \sin \left (f x + e\right ) + c}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac{3}{2}} \sqrt{-c \sin \left (f x + e\right ) + c}}{c \sin \left (f x + e\right ) - c}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac{3}{2}}}{\sqrt{-c \sin \left (f x + e\right ) + c}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]